home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Over 1,000 Windows 95 Programs
/
Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso
/
0232
/
setup.sam
< prev
next >
Wrap
INI File
|
1997-03-26
|
7KB
|
560 lines
[ver]
4
[sty]
[files]
[charset]
82
ANSI (Windows, IBM CP 1252)
[revisions]
0
[prn]
PostScript Printer
[port]
LPT1:
[lang]
2
[fldnames]
Field1
Field2
Field3
Field4
Field5
Field6
Field7
Field8
[desc]
816257832
9
797006269
78
2
0
0
0
0
1
[fopts]
0
1
0
0
[lnopts]
2
Body Text
1
[docopts]
5
2
[GramStyle]
[tag]
Body Text
2
[fnt]
Arial MT
240
0
16384
[algn]
1
1
216
0
0
[spc]
33
273
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
0
0
1
1
0
16
0
0
[nfmt]
272
1
2
.
,
</c>
Body Text
0
0
[tag]
Body Single
3
[fnt]
TimesNewRomanPS
200
0
49152
[algn]
1
1
0
0
0
[spc]
33
273
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
0
0
1
1
0
0
0
0
[nfmt]
272
1
2
.
,
</c>
Body Single
0
0
[tag]
Function
4
[fnt]
Arial MT
200
0
16385
[algn]
1
1
0
0
0
[spc]
33
244
1
0
0
1
100
[brk]
68
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
1
0
1
1
0
0
0
0
[nfmt]
272
1
2
.
,
</c>
Body Text
0
0
[lay]
Standard
516
[rght]
16833
11908
1
1440
1440
1
1440
1440
0
1
0
1
0
2
1
1440
10465
12
1
720
1
1440
1
2160
1
2880
1
3600
1
4320
1
5040
1
5760
1
6480
1
7200
1
7920
1
8640
[hrght]
[lyfrm]
1
11200
0
0
11908
1440
0
1
3
1 0 0 0 0 0 0
0
0
1
[frmlay]
1440
11908
1
1440
72
1
792
1440
0
1
0
1
1
0
1
1440
10465
1
3
9360
[txt]
>
[frght]
[lyfrm]
1
13248
0
15393
11908
16833
0
1
3
1 0 0 0 0 0 0
0
0
2
[frmlay]
16833
11908
1
1440
792
1
15465
1440
0
1
0
1
1
0
1
1440
10465
2
2
4680
3
9360
[txt]
>
[elay]
[l1]
0
[pg]
2
49 0 40 0 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
96 0 12 1025 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
[edoc]
<:#278,9025>FUNCTION SetupAmiWeb()
<:#278,9025>
<:#278,9025>Win=GetWindowsDirectory$()
<:#278,9025>Ami=GetAmiDirectory$()
<:#278,9025>Macros=GetMacPath$()
<:#278,9025>Style=GetStylePath$()
<:#278,9025>Docs=GetDocPath$()
Icons="{Ami}icons\"
<:#278,9025>
<:#278,9025>
<:#556,9025>Message("Please send me a REAL postcard!! See README.TXT","AmiWeb Setup")
<:#278,9025>File=FindFirst$("{Win}system\ole2nls.dll",0)
<:#278,9025>IF File=""
<:#278,9025> Message("You must install OLE2 first","AmiWeb Setup")
<:#278,9025> EXIT FUNCTION
<:#278,9025>ENDIF
<:#278,9025>File=FindFirst$("{Ami}wn_sm2ht.exe",0)
<:#278,9025>IF File<<<;>""
<:#278,9025> DOSDelFile("{Ami}wn_sm2ht.exe")
<:#278,9025>ENDIF
<:#278,9025>FillEdit(8000,Macros)
<:#278,9025>FillEdit(8001,Icons)
<:#278,9025>FillEdit(8002,Style)
<:#278,9025>FillEdit(8003,Docs)
<:#278,9025>
<:#278,9025>Box=DialogBox(".","Setup")
<:#278,9025>IF Box<<<;>1
<:#278,9025> EXIT FUNCTION
<:#278,9025>ENDIF
<:#278,9025>
<:#278,9025>Macros=GetDialogField$(8000)
<:#278,9025>Icons=GetDialogField$(8001)
<:#278,9025>Style=GetDialogField$(8002)
<:#278,9025>Docs=GetDialogField$(8003)
<:#278,9025>
<:#278,9025>MacroName=GetRunningMacroFile$()
<:#278,9025>Pos=LEN(MacroName)
<:#278,9025>WHILE "\" != MID$(MacroName, Pos, 1)
<:#278,9025> Pos = Pos - 1
<:#278,9025>WEND
<:#278,9025>PathName = Left$(MacroName, Pos)
<:#278,9025>Entries=GetProfileString$("info","windows","{PathName}Setup.ini")
<:#278,9025>CALL CopyFiles(Win, Entries, PathName)
<:#278,9025>Entries=GetProfileString$("info","macros","{PathName}Setup.ini")
<:#278,9025>CALL CopyFiles(Macros, Entries, PathName)
<:#278,9025>Entries=GetProfileString$("info","styles","{PathName}Setup.ini")
<:#278,9025>CALL CopyFiles(Style, Entries, PathName)
<:#278,9025>Entries=GetProfileString$("info","icons","{PathName}Setup.ini")
<:#278,9025>CALL CopyFiles(Icons, Entries, PathName)
<:#278,9025>Entries=GetProfileString$("info","docs","{PathName}Setup.ini")
<:#278,9025>CALL CopyFiles(Docs, Entries, PathName)
<:#278,9025>Message("Installation Complete")
<:#278,9025>
<:#278,9025>END FUNCTION
<:#278,9025>
<:#278,9025>DIALOG Setup
<:#278,9025>-2134376448 11 36 62 246 146 "" "" "AmiWeb Setup"
<:#278,9025>18 28 40 10 1000 1342177280 "static" "Macros file" 0
<:#278,9025>18 48 40 10 1001 1342177280 "static" "SmartIcons" 0
<:#278,9025>18 68 40 10 1002 1342177280 "static" "Style Sheet" 0
<:#278,9025>18 88 40 10 1003 1342177280 "static" "Documents" 0
<:#556,9025>26 6 130 10 1004 1342177280 "static" "Destination directories for:" 0
<:#278,9025>62 26 150 12 8000 1350631552 "edit" "" 0
<:#278,9025>62 46 150 12 8001 1350631552 "edit" "" 0
<:#278,9025>62 66 150 12 8002 1350631552 "edit" "" 0
<:#278,9025>62 86 150 12 8003 1350631552 "edit" "" 0
<:#278,9025>60 116 40 14 1 1342373889 "button" "OK" 0
<:#278,9025>130 116 40 14 2 1342373888 "button" "Quit Setup" 0
<:#278,9025>END DIALOG
<:#278,9025>
<:#278,9025>
<:#278,9025>FUNCTION CopyFiles(Directory, Entries, PathName)
<:#278,9025>
<:#278,9025>IF Right$(Directory,1)<<<;>"\"
<:#278,9025> Directory="{Directory}\"
<:#278,9025>ENDIF
<:#278,9025>Pos=1
<:#278,9025>WHILE Pos<<LEN(Entries)
<:#278,9025> Pos2=Pos
<:#278,9025> WHILE (" "<<<;>MID$(Entries, Pos, 1)) AND(Pos<<LEN(Entries))
<:#278,9025> Pos=Pos+1
<:#278,9025> WEND
<:#278,9025> IF(Pos<<LEN(Entries))
<:#278,9025> Pos=Pos+(-1)
<:#278,9025> ENDIF
<:#278,9025> Files=MID$(Entries, Pos2, (Pos-Pos2)+1)
<:#278,9025> File=FindFirst$("{PathName}{Files}",0)
<:#278,9025> WHILE File<<<;>""
<:#278,9025> IF DOSCopyFile("{PathName}{File}","{Directory}{File}") <<<;> 1
<:#278,9025> Message("Unable to copy {File} to {Directory}")
<:#278,9025> ENDIF
<:#278,9025> File=FindNext$()
<:#278,9025> WEND
<:#278,9025> Pos=Pos+2
<:#278,9025>WEND
<:#278,9025>END FUNCTION
>
[Embedded]
00006573